package com.sita.palla.service.config;

import com.google.common.eventbus.EventBus;
import com.sita.palla.persistence.config.DaoConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.multipart.commons.CommonsMultipartResolver;

/**
 * Created by wxd on 16/8/23.
 */
@Configuration
@ComponentScan(basePackages = {
        "org.mapwar.service.core",
        "org.mapwar.service.rest"})
@Import({DaoConfig.class})
@EnableScheduling

public class ServiceConfig {
    @Autowired
    Environment env;

   /* @Bean
    public CommonsMultipartResolver multipartResolver() {
        return new CommonsMultipartResolver();
    }
*/

    @Bean
    public EventBus eventBus() {
        return new EventBus();
    }


}
